package com.sise.foodplatform.service;

import com.sise.foodplatform.pojo.Restaurant;

import java.util.List;

/**
 * @Author: tae
 * @Date: 2021/4/12 21:20
 * @Description:
 */
public interface RestaurantService {

    //获得所有餐馆
    List<Restaurant> getAllRestaurant(String resName, int PageStart, int pageSize);
    //获得餐馆个数
    int getRestaurantCounts(String resName);
    //获得某用户的所有餐馆
    List<Restaurant> getAllRestaurantByUserId(String resName, int PageStart, int pageSize, int userId);
    //获得某用户的餐馆个数
    int getRestaurantCountsByUserId(String resName, int userId);
    //修改餐馆状态
    int updateRestaurantState(Integer res_id, Boolean state);
    //用户增加餐馆
    int addRestaurantByUser(Restaurant restaurant);
    //用户修改餐馆
    int editRestaurantById(Restaurant restaurant);
    //用户删除餐馆
    int deleteRestaurantById(int id);
    //
    Restaurant getUpdateRestaurant(int id);
    //按喜爱程度获取餐馆
    List<Restaurant> getAllRestaurantByLike();
}
